package edu.sctu.zhoudie.mouth201505.day20150504;

/**
 * Created by user08 on 2015/5/4.
 */
public class Animal {

    public static void main(String[] args) {

        Main main  =  new Main();

        Interface in = new ConInterface();
        in.getcolor("white");

        Interface interw = new Interface(){
            @Override
            public void getcolor(String color) {
                System.out.println(color);
            }

            @Override
            public void getsize(float size) {
                System.out.println(size);
            }

            @Override
            public void getmovement(String movement) {
                System.out.println(movement);
            }

        };
        interw.getcolor("white");

       main.get(new Interface(){
           @Override
           public void getcolor(String color) {
               System.out.println(color);
           }

           @Override
           public void getsize(float size) {
               System.out.println(size);
           }

           @Override
           public void getmovement(String movement) {
               System.out.println(movement);
           }

    });
    }
}


